﻿using System;
using System.Data;
using System.Data.SqlClient;
using LoverMeeting.Model.Entity;

namespace LoverMeeting.DataBase.DataMappers
{
    public class RelationshipTypeMapper : IDataMapper<RelationshipType>
    {
        public RelationshipType GetData(IDataReader reader)
        {
            return new RelationshipType
                       {
                           Id = int.Parse(reader["RelationshipTypeId"].ToString()),
                           Description = reader["RelationshipTypeDescription"].ToString()
                       };
        }

        public void SetParameter(SqlCommand command, RelationshipType entity)
        {
            throw new NotImplementedException();
        }

        public int GetRecordCount(IDataReader reader)
        {
            throw new NotImplementedException();
        }
    }
}
